]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notification: Remove scrollTo hack
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Mar 2011 13:00:25 +0000 (14:00 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Mar 2011 18:38:16 +0000 (19:38 +0100)
Remove the hack from Notification.scrollTo because it is unreliable,
the caller should make sure to call scrollTo when it will actually
have the desired effect.

https://bugzilla.gnome.org/show_bug.cgi?id=614977

js/ui/messageTray.js

index c9c977aafbd863af761b33a78ac85bf4c576fc33..39b90f860cc7608069cab8355051cc7e87778ec3 100644 (file)
@@ -571,11 +571,6 @@ Notification.prototype = {
     //
     // Scrolls the content area (if scrollable) to the indicated edge
     scrollTo: function(side) {
-        // Hack to force a relayout, since the caller probably
-        // just added or removed something to scrollArea, and
-        // the adjustment needs to reflect that.
-        global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, 0, 0);
-
         let adjustment = this._scrollArea.vscroll.adjustment;
         if (side == St.Side.TOP)
             adjustment.value = adjustment.lower;